# -*-编码: utf-8 -*-
import time

# 从读取ui文件 “mygui.ui” 生成的表单实现
#
# 创建者: PyQt5 UI代码生成器5.15.4
#
# 警告: 当pyuic5为
# 再次运行。除非你知道你在做什么，否则不要编辑这个文件。


from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QProgressBar
import time
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(572, 572)


        self.label1 = QtWidgets.QLabel()
        self.label1.setObjectName("draw_window")
        self.label1.setFrameShape(QtWidgets.QFrame.Panel)
        self.label1.setText("")
        self.label1.setMinimumSize(400, 400)
        palette_white = QtGui.QPalette()
        palette_white.setColor(QtGui.QPalette.Window, QtCore.Qt.black)
        self.label1.setPalette(palette_white)
        # 创建一个新的 QLabel 来显示图片  
        self.image_label = QtWidgets.QLabel()  
        self.image_label.setObjectName("image_label")  
        self.image_label.setFrameShape(QtWidgets.QFrame.Panel)  
        self.image_label.setText("")  
        self.image_label.setAlignment(QtCore.Qt.AlignCenter)  
        self.image_label.setMinimumSize(300, 400)  # 根据需要调整大小  
  
        # 创建垂直布局来放置图片显示窗口  
        self.verticalLayout_image = QtWidgets.QVBoxLayout()  
        self.verticalLayout_image.addWidget(self.image_label) 
        
        self.label2 = QtWidgets.QLabel()
        self.label2.setObjectName("result_label")
        self.label2.setText("结果：")
        self.label2.setAlignment(QtCore.Qt.AlignCenter)
        self.label2.setMaximumSize(60, 30)

        self.label3 = QtWidgets.QLabel()
        self.label3.setFrameShape(QtWidgets.QFrame.Box)
        self.label3.setFrameShadow(QtWidgets.QFrame.Plain)
        self.label3.setObjectName("reslut_num")
        self.label3.setText("")
        self.label3.setMaximumSize(100, 60)
        self.label3.setAlignment(QtCore.Qt.AlignCenter)

        self.horizontalLayout0 = QtWidgets.QHBoxLayout()
        self.horizontalLayout0.addWidget(self.label2)
        self.horizontalLayout0.addWidget(self.label3)

        self.horizontalLayout1 = QtWidgets.QHBoxLayout()
        self.horizontalLayout1.addLayout(self.horizontalLayout0)
        self.horizontalLayout1.addLayout(self.verticalLayout_image) 
        self.horizontalLayout1.addWidget(self.label1)
        self.pushButton1 = QtWidgets.QPushButton()
        self.pushButton1.setObjectName("recognition")
        self.pushButton1.setText("识别")
        self.progressBar=QProgressBar()
        # 展示进程度
        self.progressBar.setMinimum(0)
        self.progressBar.setMaximum(100)
        self.progressBar.setValue(0)

        self.pushButton2 = QtWidgets.QPushButton()
        self.pushButton2.setObjectName("clear")
        self.pushButton2.setText("清空")
        self.pushButton3 = QtWidgets.QPushButton()
        self.pushButton3.setObjectName("close")
        self.pushButton3.setText("关闭")
        self.pushButton_upload = QtWidgets.QPushButton()  
        self.pushButton_upload.setObjectName("uploadImage")  
        self.pushButton_upload.setText("上传图片")        
        
        self.horizontalLayout2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout2.addWidget(self.pushButton1)
        self.horizontalLayout2.addWidget(self.progressBar)
        self.horizontalLayout2.addWidget(self.pushButton2)
        self.horizontalLayout2.addWidget(self.pushButton3)
        self.horizontalLayout2.addWidget(self.pushButton_upload)

        self.verticalLayout_top = QtWidgets.QVBoxLayout(Form)
        self.verticalLayout_top.addLayout(self.verticalLayout_image)  
        self.verticalLayout_top.addLayout(self.horizontalLayout1)
        self.verticalLayout_top.addLayout(self.horizontalLayout2)

        self.setLayout(self.verticalLayout_top)
        self.setGeometry(600, 400, 1296, 737)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "0~9数字图形识别"))



